package com.zq.zqfeign;

import com.zq.zqapi.ZqfeignHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @Autowired
    ZqFeignService zqFeignService;

    @Autowired
    ZqfeignHelloServiceRacter zqfeignHelloServiceRacter;


    @RequestMapping(value = "/feign-consumer", method = RequestMethod.GET)
    public String helloConsumer() {
        return zqFeignService.hello();
    }

    @RequestMapping(value = "/hello-feign", method = RequestMethod.GET)
    public String helloConsumer1(){
        return zqfeignHelloServiceRacter.hello();
    }
}